//
//  JudgeBackDataCodeMessage.h
//  EasyToTesco2.0
//
//  Created by 袖手旁觀 on 16/6/30.
//  Copyright © 2016年 EasyToTesco. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef void(^CompleteBlock)(id object);

typedef void(^CompleteBackDataBlock)(id object);

@interface JudgeBackDataCodeMessage : NSObject

/**
 *  处理接口返回状态 成功跳转Block
 *
 *  @param message       成功赶回弹框文字
 *  @param object        失败返回数据
 *  @param view          HUD添加的View
 *  @param completeBlock 完成弹框后跳转
 */
+ (void)JudgeBackDataCodeMessage:(NSString *)message andObjece:(id)object andAddHUDView:(UIView *)view andPopViewController:(CompleteBlock)completeBlock;

/**
 *  处理处理接口返回数据 接口返回成功操作数据Block
 *
 *  @param message       成功赶回弹框文字
 *  @param object        失败返回数据
 *  @param view          HUD添加的View
 *  @param completeBlock 完成弹框后跳转
 *  @param backDataBlock 接口返回成功操作数据Block
 */
+ (void)JudgeBackDataCodeMessage:(NSString *)message andObjece:(id)object andAddHUDView:(UIView *)view andPopViewController:(CompleteBlock)completeBlock andBackDataBlock:(CompleteBackDataBlock)backDataBlock;

@end
